package com.pengy.shengxian.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 采购单明细表实体类
 */
public class CgdDetail {
    
    private Long id;                          // 采购单明细记录号
    private Long cgdMainId;                   // 采购单主表id
    private String cgdHjkCode;                // 合家康销售单号
    private Date cgdInfoDate;                 // 开单日期
    private String cgdDetailGoodsSupplier;    // 供应商
    private String cgdDetailPurpose;          // 用途
    private String cgdDetailGoodsType;        // 类别
    private String cgdDetailGoodsName;        // 品名
    private String cgdDetailGoodsCode;        // 商品编码
    private String cgdDetailGoodsUnit;        // 单位
    private String cgdDetailGoodsSpecs;       // 规格
    private BigDecimal cgdDetailGoodsNum;     // 数量
    private BigDecimal cgdDetailGoodsPrice;   // 单价(含税)
    private String cgdDetailRemark;           // 备注
    private String cgdDetailReserve1;         // 预留字段1
    private String cgdDetailReserve2;         // 预留字段2
    private String cgdDetailReserve3;         // 预留字段3
    private String cgdCode;                   // 客户采购单号
    private Integer outcgdInfoId;             // 采购单封面id
    private String cgdDetailCode;             // 增加联通系统中的采购单封面ID，用于比对
    private String cgdDetailIsdelete;         // 增加标记删除，0默认不删除，1为删除
    private Date cgdDetailIsdeletetime;       // 标记删除的时间
    private String cgdDetailGoodsCheckstatus; // 检查状态
    private String cgdDetailGoodsCheckstatusremark; // 检查状态备注
    private Integer cgdDetailSyncStatus;      // 同步状态
    private String cgdDetailSyncMsg;          // 同步消息
    private Date cgdDetailSyncDate;           // 同步时间
    
    // 构造函数
    public CgdDetail() {
        this.cgdDetailSyncStatus = 0;
        this.cgdDetailIsdelete = "0";
    }
    
    // Getters and Setters
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getCgdMainId() {
        return cgdMainId;
    }
    
    public void setCgdMainId(Long cgdMainId) {
        this.cgdMainId = cgdMainId;
    }
    
    public String getCgdHjkCode() {
        return cgdHjkCode;
    }
    
    public void setCgdHjkCode(String cgdHjkCode) {
        this.cgdHjkCode = cgdHjkCode;
    }
    
    public Date getCgdInfoDate() {
        return cgdInfoDate;
    }
    
    public void setCgdInfoDate(Date cgdInfoDate) {
        this.cgdInfoDate = cgdInfoDate;
    }
    
    public String getCgdDetailGoodsSupplier() {
        return cgdDetailGoodsSupplier;
    }
    
    public void setCgdDetailGoodsSupplier(String cgdDetailGoodsSupplier) {
        this.cgdDetailGoodsSupplier = cgdDetailGoodsSupplier;
    }
    
    public String getCgdDetailPurpose() {
        return cgdDetailPurpose;
    }
    
    public void setCgdDetailPurpose(String cgdDetailPurpose) {
        this.cgdDetailPurpose = cgdDetailPurpose;
    }
    
    public String getCgdDetailGoodsType() {
        return cgdDetailGoodsType;
    }
    
    public void setCgdDetailGoodsType(String cgdDetailGoodsType) {
        this.cgdDetailGoodsType = cgdDetailGoodsType;
    }
    
    public String getCgdDetailGoodsName() {
        return cgdDetailGoodsName;
    }
    
    public void setCgdDetailGoodsName(String cgdDetailGoodsName) {
        this.cgdDetailGoodsName = cgdDetailGoodsName;
    }
    
    public String getCgdDetailGoodsCode() {
        return cgdDetailGoodsCode;
    }
    
    public void setCgdDetailGoodsCode(String cgdDetailGoodsCode) {
        this.cgdDetailGoodsCode = cgdDetailGoodsCode;
    }
    
    public String getCgdDetailGoodsUnit() {
        return cgdDetailGoodsUnit;
    }
    
    public void setCgdDetailGoodsUnit(String cgdDetailGoodsUnit) {
        this.cgdDetailGoodsUnit = cgdDetailGoodsUnit;
    }
    
    public String getCgdDetailGoodsSpecs() {
        return cgdDetailGoodsSpecs;
    }
    
    public void setCgdDetailGoodsSpecs(String cgdDetailGoodsSpecs) {
        this.cgdDetailGoodsSpecs = cgdDetailGoodsSpecs;
    }
    
    public BigDecimal getCgdDetailGoodsNum() {
        return cgdDetailGoodsNum;
    }
    
    public void setCgdDetailGoodsNum(BigDecimal cgdDetailGoodsNum) {
        this.cgdDetailGoodsNum = cgdDetailGoodsNum;
    }
    
    public BigDecimal getCgdDetailGoodsPrice() {
        return cgdDetailGoodsPrice;
    }
    
    public void setCgdDetailGoodsPrice(BigDecimal cgdDetailGoodsPrice) {
        this.cgdDetailGoodsPrice = cgdDetailGoodsPrice;
    }
    
    public String getCgdDetailRemark() {
        return cgdDetailRemark;
    }
    
    public void setCgdDetailRemark(String cgdDetailRemark) {
        this.cgdDetailRemark = cgdDetailRemark;
    }
    
    public String getCgdDetailReserve1() {
        return cgdDetailReserve1;
    }
    
    public void setCgdDetailReserve1(String cgdDetailReserve1) {
        this.cgdDetailReserve1 = cgdDetailReserve1;
    }
    
    public String getCgdDetailReserve2() {
        return cgdDetailReserve2;
    }
    
    public void setCgdDetailReserve2(String cgdDetailReserve2) {
        this.cgdDetailReserve2 = cgdDetailReserve2;
    }
    
    public String getCgdDetailReserve3() {
        return cgdDetailReserve3;
    }
    
    public void setCgdDetailReserve3(String cgdDetailReserve3) {
        this.cgdDetailReserve3 = cgdDetailReserve3;
    }
    
    public String getCgdCode() {
        return cgdCode;
    }
    
    public void setCgdCode(String cgdCode) {
        this.cgdCode = cgdCode;
    }
    
    public Integer getOutcgdInfoId() {
        return outcgdInfoId;
    }
    
    public void setOutcgdInfoId(Integer outcgdInfoId) {
        this.outcgdInfoId = outcgdInfoId;
    }
    
    public String getCgdDetailCode() {
        return cgdDetailCode;
    }
    
    public void setCgdDetailCode(String cgdDetailCode) {
        this.cgdDetailCode = cgdDetailCode;
    }
    
    public String getCgdDetailIsdelete() {
        return cgdDetailIsdelete;
    }
    
    public void setCgdDetailIsdelete(String cgdDetailIsdelete) {
        this.cgdDetailIsdelete = cgdDetailIsdelete;
    }
    
    public Date getCgdDetailIsdeletetime() {
        return cgdDetailIsdeletetime;
    }
    
    public void setCgdDetailIsdeletetime(Date cgdDetailIsdeletetime) {
        this.cgdDetailIsdeletetime = cgdDetailIsdeletetime;
    }
    
    public String getCgdDetailGoodsCheckstatus() {
        return cgdDetailGoodsCheckstatus;
    }
    
    public void setCgdDetailGoodsCheckstatus(String cgdDetailGoodsCheckstatus) {
        this.cgdDetailGoodsCheckstatus = cgdDetailGoodsCheckstatus;
    }
    
    public String getCgdDetailGoodsCheckstatusremark() {
        return cgdDetailGoodsCheckstatusremark;
    }
    
    public void setCgdDetailGoodsCheckstatusremark(String cgdDetailGoodsCheckstatusremark) {
        this.cgdDetailGoodsCheckstatusremark = cgdDetailGoodsCheckstatusremark;
    }
    
    public Integer getCgdDetailSyncStatus() {
        return cgdDetailSyncStatus;
    }
    
    public void setCgdDetailSyncStatus(Integer cgdDetailSyncStatus) {
        this.cgdDetailSyncStatus = cgdDetailSyncStatus;
    }
    
    public String getCgdDetailSyncMsg() {
        return cgdDetailSyncMsg;
    }
    
    public void setCgdDetailSyncMsg(String cgdDetailSyncMsg) {
        this.cgdDetailSyncMsg = cgdDetailSyncMsg;
    }
    
    public Date getCgdDetailSyncDate() {
        return cgdDetailSyncDate;
    }
    
    public void setCgdDetailSyncDate(Date cgdDetailSyncDate) {
        this.cgdDetailSyncDate = cgdDetailSyncDate;
    }
    
    @Override
    public String toString() {
        return "CgdDetail{" +
                "id=" + id +
                ", cgdMainId=" + cgdMainId +
                ", cgdHjkCode='" + cgdHjkCode + '\'' +
                ", cgdInfoDate=" + cgdInfoDate +
                ", cgdDetailGoodsSupplier='" + cgdDetailGoodsSupplier + '\'' +
                ", cgdDetailPurpose='" + cgdDetailPurpose + '\'' +
                ", cgdDetailGoodsType='" + cgdDetailGoodsType + '\'' +
                ", cgdDetailGoodsName='" + cgdDetailGoodsName + '\'' +
                ", cgdDetailGoodsCode='" + cgdDetailGoodsCode + '\'' +
                ", cgdDetailGoodsUnit='" + cgdDetailGoodsUnit + '\'' +
                ", cgdDetailGoodsSpecs='" + cgdDetailGoodsSpecs + '\'' +
                ", cgdDetailGoodsNum=" + cgdDetailGoodsNum +
                ", cgdDetailGoodsPrice=" + cgdDetailGoodsPrice +
                ", cgdDetailRemark='" + cgdDetailRemark + '\'' +
                ", cgdDetailReserve1='" + cgdDetailReserve1 + '\'' +
                ", cgdDetailReserve2='" + cgdDetailReserve2 + '\'' +
                ", cgdDetailReserve3='" + cgdDetailReserve3 + '\'' +
                ", cgdCode='" + cgdCode + '\'' +
                ", outcgdInfoId=" + outcgdInfoId +
                ", cgdDetailCode='" + cgdDetailCode + '\'' +
                ", cgdDetailIsdelete='" + cgdDetailIsdelete + '\'' +
                ", cgdDetailIsdeletetime=" + cgdDetailIsdeletetime +
                ", cgdDetailGoodsCheckstatus='" + cgdDetailGoodsCheckstatus + '\'' +
                ", cgdDetailGoodsCheckstatusremark='" + cgdDetailGoodsCheckstatusremark + '\'' +
                ", cgdDetailSyncStatus=" + cgdDetailSyncStatus +
                ", cgdDetailSyncMsg='" + cgdDetailSyncMsg + '\'' +
                ", cgdDetailSyncDate=" + cgdDetailSyncDate +
                '}';
    }
} 